#ifndef CONFIGFILE_H
#define CONFIGFILE_H

#include <QObject>
#include <QSettings>

class ConfigFile : public QObject
{
    Q_OBJECT
public:
    explicit ConfigFile(QObject *parent = NULL);
    virtual ~ConfigFile();

    static ConfigFile * gestance();


    void initAllData();

    void setSinW(QString values);
    int getSinW();
    void setSinH(QString values);
    int getSinH();
    void setAirTime(QString values);
    int getAirTime();
    void setCoTime(QString values);
    int getCoTime();

    void setAirCheck(QString values);
    double getAirCheck();

    void setAirTake(QString values);
    int getAirTake();

    void setCoCheck(QString values);
    double getCoCheck();


    void setAirSpace(QString values);
    int getAirSpace();
    void setCoSpace(QString values);
    int getCoSpace();

    void setAirTakeTime(QString values);
    int getAirTakeTime();
    void setCoTakeTime(QString values);
    int getCoTakeTime();

    void setCoTake(QString values);
    int getCoTake();


    void setOpenTime(QString values);
    int getOpenTime();


    void setRunNum(QString values);
    int getRunNum();


    void setPowers(QString values);
    int getPowers();

    void setLimitNum(QString values);
    double getLimitNum();

    void setLimitTime(QString values);
    int getLimitTime();

    void setLimitDevice(QString values);
    int getLimitDevice();


signals:


private:
    QSettings * m_settings;
    QString m_docParhFile;
};

#endif // CONFIGFILE_H
